package event;

import java.awt.FlowLayout;

import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JScrollPane;

public class MyFrame06 extends JFrame{
	JList list = null;
	JComboBox cb = null;
	
	public MyFrame06(){
		setLayout(new FlowLayout());
		String str[] = {"자바","JSP","안드로이드","오라클"};
		list = new JList(str);
		cb = new JComboBox(str);
		add(new JScrollPane(list));
		add(cb);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(400,300);
		setVisible(true);
	}
	public static void main(String[] args) {
		new MyFrame06();
		

	}

}
